package com.tyk.bookstore.front.storage.service;


import com.tyk.bookstore.front.storage.model.dto.StockMeetDto;
import com.tyk.bookstore.front.storage.model.query.Stock4OrderDeductQuery;
import com.tyk.bookstore.front.storage.model.query.Stock4OrderRollBackQuery;
import com.tyk.bookstore.front.storage.model.query.Stock4OrderStockMeetQuery;

import java.util.List;

/**
 * 库存管理对内暴露接口
 */
public interface StockApiService {
    /**
     * 回滚库存
     */
    void rollBack(List<Stock4OrderRollBackQuery> rbqList);

    /**
     * 扣减库存
     */
    void deduct(List<Stock4OrderDeductQuery> dpList);

    /**
     * 获取严格满足要求的库存记录
     */
    List<StockMeetDto> getStockMeetListWithStrict(List<Stock4OrderStockMeetQuery> smqList);
}
